/*
 * Abyss Theater - CSS Stylesheet
 * @version 1.0
 * @author Manus
 * @description Deep sea immersive dark theme for movie sites.
 */

:root {
    --at-dark-blue: #0D1B2A;
    --at-teal: #1B998B;
    --at-near-black: #0a0e17;
    --at-light-blue: #B8D4E3;
    --at-white: #E0E0E0;
}

body {
    background-color: var(--at-near-black);
    color: var(--at-light-blue);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.at-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Logo --- */
.at-header {
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 100;
}

.at-logo img {
    max-width: 180px;
    height: auto;
}

/* --- Footer & Bottom Nav --- */
.at-footer {
    background-color: var(--at-dark-blue);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    margin-top: 40px;
}

.at-footer-links, .at-footer-contact {
    margin-bottom: 15px;
}

.at-footer a {
    color: var(--at-light-blue);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.at-footer a:hover {
    color: var(--at-teal);
}

.at-bottom-nav {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
    border-top: 1px solid var(--at-teal);
}

.at-bottom-nav a {
    color: var(--at-white);
    text-decoration: none;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.at-bottom-nav a:hover {
    transform: scale(1.1);
    color: var(--at-teal);
}

/* --- Index Page --- */
.at-hero {
    min-height: 50vh; max-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(10, 14, 23, 0.7), rgba(10, 14, 23, 0.9)), url('https://source.unsplash.com/random/1920x1080/?ocean,deep') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.at-hero-title {
    font-size: 4rem;
    color: var(--at-white);
    margin: 0;
    text-shadow: 0 0 15px var(--at-teal);
}

.at-hero-stats {
    font-size: 1.2rem;
    margin-top: 20px;
}

.at-scroll-recommend {
    padding: 30px 0;
    background-color: var(--at-dark-blue);
}

.at-scroll-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--at-teal) var(--at-dark-blue);
}

.at-scroll-item {
    flex: 0 0 220px;
    margin-right: 20px;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.at-scroll-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.at-scroll-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--at-teal);
}

.at-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 20px;
}

.at-content-block {
    background-color: var(--at-dark-blue);
    padding: 20px;
    border-radius: 8px;
}

.at-content-title {
    font-size: 1.8em;
    color: var(--at-teal);
    border-bottom: 2px solid var(--at-teal);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.at-movie-list-item {
    display: flex;
    margin-bottom: 15px;
}

.at-movie-list-item img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.at-movie-list-info h4 {
    margin: 0 0 10px;
    font-size: 1.1em;
}

.at-movie-list-info a {
    color: var(--at-light-blue);
    text-decoration: none;
}

.at-movie-list-info a:hover {
    text-decoration: underline;
}

/* --- List Page --- */
.at-list-container {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.at-list-main {
    flex: 3;
}

.at-list-item {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
}

.at-list-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.at-list-item:hover img {
    transform: scale(1.1);
}

.at-list-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--at-white);
    padding: 40px 20px 20px;
    font-size: 2em;
    margin: 0;
}

.at-list-item-title a {
    color: inherit;
    text-decoration: none;
}

.at-list-sidebar {
    flex: 1;
}

/* --- Show Page --- */
.at-show-container {
    max-width: 760px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--at-dark-blue);
    border: 10px solid transparent;
    border-image: linear-gradient(to bottom right, var(--at-teal), var(--at-dark-blue)) 1;
    box-shadow: 0 0 50px rgba(27, 153, 139, 0.3);
    position: relative;
}

.at-show-container::before, .at-show-container::after {
    content: '';
    position: absolute;
    width: 10px;
    background: var(--at-teal);
    top: -10px;
    bottom: -10px;
}

.at-show-container::before {
    left: -20px;
}

.at-show-container::after {
    right: -20px;
}

.at-show-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 20px;
}

.at-show-meta {
    text-align: center;
    margin-bottom: 30px;
    color: var(--at-light-blue);
}

.at-show-content {
    font-size: 1.1em;
    line-height: 1.8;
}

.at-show-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* --- Right Sidebar --- */
.at-right-widget {
    background-color: var(--at-dark-blue);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.at-right-widget-title {
    font-size: 1.4em;
    color: var(--at-teal);
    margin: 0 0 15px;
}

.at-right-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.at-right-widget li {
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.at-right-widget a {
    color: var(--at-light-blue);
    text-decoration: none;
}

.at-right-widget a:hover {
    text-decoration: underline;
}

/* --- Bubbles Animation --- */
.at-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.at-bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: rgba(27, 153, 139, 0.2);
    border-radius: 50%;
    animation: at-bubble-rise-fx 25s infinite ease-in;
}

@keyframes at-bubble-rise-fx {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-1080px) translateX(100px);
    }
}

/* --- Pagination --- */
.at-pagination {
    text-align: center;
    padding: 20px 0;
}

.at-pagination a, .at-pagination span {
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid var(--at-teal);
    color: var(--at-teal);
    text-decoration: none;
    border-radius: 4px;
}

.at-pagination .current, .at-pagination a:hover {
    background-color: var(--at-teal);
    color: var(--at-dark-blue);
}


/* ========== 差异化特效 ========== */
/*
 * 深海剧院 (at-) 模板专属CSS特效
 * 设计风格: 深蓝青绿沉浸系
 */

/* 动画: 气泡上升 */
@keyframes at-bubble-rise {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-200px) scale(1.2);
    opacity: 0;
  }
}

/* 动画: 波浪动态效果 */
@keyframes at-wave-motion {
  0%, 100% {
    border-radius: 45% 55% 70% 30% / 30% 50% 50% 70%;
  }
  50% {
    border-radius: 30% 70% 40% 60% / 60% 40% 60% 40%;
  }
}

/* 动画: 深海生物发光 */
@keyframes at-deep-glow {
  0%, 100% {
    box-shadow: 0 0 15px 5px rgba(0, 255, 255, 0.3), 0 0 25px 10px rgba(7, 98, 114, 0.2) inset;
  }
  50% {
    box-shadow: 0 0 25px 10px rgba(0, 255, 255, 0.5), 0 0 40px 15px rgba(7, 98, 114, 0.4) inset;
  }
}

/* 通用容器增加深海氛围 */
.at-container {
    /* 可应用 at-deep-glow 动画 */
    animation: at-deep-glow 8s ease-in-out infinite;
}

/* 卡片Hover: 水波纹扩散 */
.at-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.at-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 25, 50, 0.4);
}

.at-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  opacity: 0;
}

.at-card:hover::after {
  transform: translate(-50%, -50%) scale(100);
  opacity: 1;
}

/* 导航Hover: 深海光柱 */
.at-nav-link {
  position: relative;
  padding: 10px 0;
  color: #c0f0ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.at-nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0;
  background-color: #00ffff; /* 青色光柱 */
  border-radius: 2px;
  box-shadow: 0 0 8px #00ffff;
  transition: height 0.3s ease-in-out;
}

.at-nav-link:hover {
  color: #fff;
}

.at-nav-link:hover::before {
  height: 100%;
}

/* 按钮Hover: 荧光效果 */
.at-btn {
  background-color: rgba(0, 120, 150, 0.6);
  border: 1px solid #00ffff;
  color: #c0f0ff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.at-btn:hover {
  background-color: rgba(0, 150, 180, 0.8);
  color: #fff;
  box-shadow: 0 0 15px 5px rgba(0, 255, 255, 0.4);
}

/* 图片Hover: 亮度与滤镜 */
.at-poster {
  transition: filter 0.4s ease, transform 0.4s ease;
  filter: brightness(0.9) contrast(1.1);
}

.at-poster:hover {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.2) hue-rotate(10deg);
}

/* 标题: 深海文字光晕 */
.at-title {
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.7), 0 0 10px rgba(0, 255, 255, 0.5);
  transition: text-shadow 0.3s ease;
}

.at-title:hover {
  text-shadow: 0 0 10px rgba(0, 255, 255, 1), 0 0 20px rgba(0, 255, 255, 0.7);
}

/* 装饰性元素应用气泡上升动画 */
.at-bubbles span {
    position: absolute;
    bottom: 0;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    animation: at-bubble-rise 10s infinite ease-in;
}
